From: Keir Fraser Date: Mon, 9 Jun 2008 08:37:22 +0000 (+0100) Subject: acm: Allow remove of labels from suspended domains. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14200^2~89 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=4c46d69b2948c96561ae9e5eeccc786a02830302;p=xen.git acm: Allow remove of labels from suspended domains. Signed-off-by: Stefan Berger --- diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 9381ad78c2..8a97bad326 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -2891,9 +2891,9 @@ class XendDomainInfo: DOM_STATES[state]) return (-xsconstants.XSERR_VM_WRONG_STATE, "", "", 0) - # Remove security label. Works only for halted domains + # Remove security label. Works only for halted or suspended domains if not seclab or seclab == "": - if state not in [ DOM_STATE_HALTED ]: + if state not in [ DOM_STATE_HALTED, DOM_STATE_SUSPENDED ]: return (-xsconstants.XSERR_VM_WRONG_STATE, "", "", 0) if self.info.has_key('security_label'):